package com.fkdx.dao.mapper;

import com.fkdx.dao.condition.TaskCondition;
import com.fkdx.dao.entity.Task;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository()
public interface TaskMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Task record);

    Task selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Task record);
    
    int updateSelective(Task record);

    List<Task> selectAll(TaskCondition condition);

    int updateByIds(@Param("ids") List<Long> ids);

    Task selectStatus(Task r);

    void insertBatch(@Param("list") List<Task> list);

    List<Task> selectByPid(Task r);

    List<Task> selectByPids(@Param("pids") List<Long> pids);

    void updateByPid(@Param("pid") Long pid);

  Integer selectTaskCount(@Param("pid") Long pid);
}
